<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>

<rich:panel header="#{messages['create.product.extension']}">
		
		<t:panelGrid columns="2">
			<t:outputText></t:outputText>
			<t:message for="from" styleClass="error"></t:message>
			
			<h:outputLabel for="from" value="#{messages['from']}" styleClass="standardText_Label"/>
			<t:inputCalendar
			    	id="from"
						monthYearRowClass="yearMonthHeader" weekRowClass="weekHeader" 
						currentDayCellClass="currentDayCell" value="#{partnerProductExtBean.extension.from}"
						renderAsPopup="true" popupTodayString="#{messages['popup.today']}"
						popupWeekString="#{messages['popup.week']}" popupDateFormat="dd/MM/yyyy"
						renderPopupButtonAsImage="true"
						styleClass="standardText" required="true">
			    	</t:inputCalendar>
			
			<t:outputText></t:outputText>
			<t:message for="to" styleClass="error"></t:message>
			
			<h:outputLabel for="to" value="#{messages['to']}" styleClass="standardText_Label"/>
			<t:inputCalendar
			    	id="to"
						monthYearRowClass="yearMonthHeader" weekRowClass="weekHeader" 
						currentDayCellClass="currentDayCell" value="#{partnerProductExtBean.extension.to}"
						renderAsPopup="true" popupTodayString="#{messages['popup.today']}"
						popupWeekString="#{messages['popup.week']}" popupDateFormat="dd/MM/yyyy"
						renderPopupButtonAsImage="true"
						styleClass="standardText" required="true">
			    	</t:inputCalendar>
			
		</t:panelGrid>
		<t:panelGrid columns="2">
			<t:commandButton styleClass="button" action="#{partnerProductExtBean.createAction}" value="#{messages['create']}"></t:commandButton>
			<t:commandButton styleClass="button" action="#{partnerProductExtBean.backAction}" immediate="true" value="#{messages['back']}"></t:commandButton>
		</t:panelGrid>
		
</rich:panel>